package com.jeecms.wicool.entity.activities.base;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Set;

import com.jeecms.wicool.entity.activities.ActivitiesApply;
import com.jeecms.wicool.entity.shops.ShopInfo;

public abstract class AbstractActivities implements Serializable {
	
	private Integer sid;
	private String title;
	private String description;
	private String  publisher;
	private String publisherId;
	private Date  publishTime;
	private Date endTime;
	private String status;
	private Date updateTime;
	private String titlePicURL;
	private Set<ActivitiesApply> activitiesApplys;
	private ShopInfo shop;
	private String publishTimeStr;
	
	
	public Integer getSid() {
		return sid;
	}
	public void setSid(Integer sid) {
		this.sid = sid;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getPublisher() {
		return publisher;
	}
	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}
	
	public String getPublisherId() {
		return publisherId;
	}
	public void setPublisherId(String publisherId) {
		this.publisherId = publisherId;
	}
	public Date getPublishTime() {
		return publishTime;
	}
	public void setPublishTime(Date publishTime) {
		this.publishTime = publishTime;
	}
	public Date getEndTime() {
		return endTime;
	}
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	public String getTitlePicURL() {
		return titlePicURL;
	}
	public void setTitlePicURL(String titlePicURL) {
		this.titlePicURL = titlePicURL;
	}
	public Set<ActivitiesApply> getActivitiesApplys() {
		return activitiesApplys;
	}
	public void setActivitiesApplys(Set<ActivitiesApply> activitiesApplys) {
		this.activitiesApplys = activitiesApplys;
	}
	public ShopInfo getShop() {
		return shop;
	}
	public void setShop(ShopInfo shop) {
		this.shop = shop;
	}
	public String getPublishTimeStr() {
		SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");  
		String dateStr=sdf.format( this.getPublishTime());  
		return dateStr;
	}
	public void setPublishTimeStr(String publishTimeStr) {
		this.publishTimeStr = publishTimeStr;
	}
	
	
}
